package com.canto.common;

import com.canto.CantoApplication;
import com.canto.SpringContextUtil;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.Import;

@Import(SpringContextUtil.class)
public class ServletInitializer extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        logger.info("ServletInitializer启动...");
        return application.sources(CantoApplication.class);
    }

}
